home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / gus / u8gus.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-03-29  |  2KB  |  68 lines

  1. @echo off
  2. cls
  3. echo Ultima (R) VIII UltraSound Support Installation
  4. echo.
  5.  
  6. if [%1] == [] goto usage
  7. if not [%2] == [] goto usage
  8.  
  9. if not exist %1\u8.exe goto baddir
  10. if not exist %1\sound\a16sbfm.dll goto baddir
  11. if exist %1\sound\a16mt32.dll goto gooddir
  12.  
  13. :baddir
  14. echo Ultima 8 does not appear to be installed in %1.
  15. echo.
  16. goto usage
  17.  
  18. :gooddir
  19. if not exist %1\sound\dllback\a16sbfm.dll goto doback
  20. if exist %1\sound\dllback\a16mt32.dll goto docopy
  21.  
  22. :doback
  23. echo Backup up Sound Blaster and General MIDI music drivers
  24. md %1\sound\dllback
  25. copy %1\sound\a16sbfm.dll %1\sound\dllback\a16sbfm.dll > nul
  26. copy %1\sound\a16mt32.dll %1\sound\dllback\a16mt32.dll > nul
  27.  
  28. :docopy
  29. echo Copying in new files
  30. copy a16gus.dll %1\sound\a16sbfm.dll > nul
  31. copy a16gus.dll %1\sound\a16mt32.dll > nul
  32. copy ultima8.bat %1\ultima8.bat > nul
  33. copy loadpats.exe %1\loadpats.exe > nul
  34. copy u8gus.ini %1\u8gus.ini > nul
  35.  
  36. echo Running LOADPATS:
  37. loadpats -iu8gus.ini
  38. if errorlevel==1 goto lpfail
  39. echo.
  40. echo Now run INSTALL in the Ultima 8 directory.
  41. echo Set 'Sound Configuration' for 'no sound card'
  42. echo Set 'Music Configuration' for 'Sound Blaster'
  43. echo When prompted for a port address, select your UltraSound base address.
  44. echo.
  45. echo To run Ultima 8 with UltraSound support, type ULTIMA8 [ENTER].
  46. echo Do NOT type U8 [ENTER].
  47. echo.
  48. echo You will now hear Ultima 8's General MIDI music.
  49. echo.
  50. cd %1
  51. goto end
  52.  
  53. :lpfail
  54. echo.
  55. echo Error running LOADPATS. Please resolve the conflict then reinstall this
  56. echo update.
  57. echo.
  58. goto end
  59. :usage
  60. echo Usage:
  61. echo.
  62. echo  INSTALL dir_name [ENTER]
  63. echo.
  64. echo  where dir_name is the directory where Ultima 8 is installed
  65. echo.
  66. echo  e.g.  INSTALL C:\ULTIMA8
  67. echo.
  68. :end